package com.msw.ssh.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by msw on 2015/10/30.
 */
@Component
public class SayImpl {

    private int id;

    @Value("hello")
    private String name;


    public SayImpl() {

    }

    @Autowired
    public SayImpl(@Value("10") int id)
    {
        this.id = id;
    }

    public String sayHello() {
        return "hello.world";
    }

    public int getId()
    {
        return id;
    }

    public String getName()
    {
        return name;
    }
}
